package com.yunqiao.service.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户申请为司机
 *
 * @author Crocutax
 * @email wangxw725@163.com
 * @date 2019-03-16 15:25:51
 */
@TableName("tb_apply_driver")
@Data
@ApiModel(value = "用户申请为司机对象")
public class ApplyDriverEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @ApiModelProperty(value = "")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;
    /**
     * 申请成为司机0：未申请 1：申请中 2：已同意3：已拒绝
     */
    @ApiModelProperty(value = "申请成为司机0：未申请 1：申请中 2：已同意3：已拒绝")
    private Integer status;
    /**
     * 拒绝原因
     */
    @ApiModelProperty(value = "拒绝原因")
    private String applyReason;
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 手机
     */
    @ApiModelProperty(value = "手机")
    private String phone;
    /**
     * 1男2女
     */
    @ApiModelProperty(value = "1男2女")
    private Integer sex;
    /**
     * 驾驶证
     */
    @ApiModelProperty(value = "驾驶证")
    private String driverLicense;
    /**
     * 行驶证
     */
    @ApiModelProperty(value = "行驶证")
    private String drivingLicense;

    /**
     * 车牌号
     */
    @ApiModelProperty(value = "车牌号")
    private String carNumber;
    /**
     * 颜色
     */
    @ApiModelProperty(value = "颜色")
    private Integer carBrandColor;
    /**
     * 车辆类型
     */
    @ApiModelProperty(value = "车辆类型")
    private Integer carTypeId;
    /**
     * 行驶证所有人类型:1公司-2本人-3他人
     */
    @ApiModelProperty(value = "行驶证所有人类型:1公司-2本人-3他人")
    private Integer drivingLicenseType;
    /**
     * 公司
     */
    @ApiModelProperty(value = "公司")
    private String company;
    /**
     * 车辆45度照片
     */
    @ApiModelProperty(value = "车辆45度照片")
    private String carPic;
    /**
     * 营业执照
     */
    @ApiModelProperty(value = "营业执照")
    private String businessLicense;
    /**
     * 身份证正面
     */
    @ApiModelProperty(value = "身份证正面")
    private String idcardFront;
    /**
     * 身份证反面
     */
    @ApiModelProperty(value = "身份证反面")
    private String idcardBack;
    /**
     * 身份证手持
     */
    @ApiModelProperty(value = "身份证手持")
    private String idcardHandwith;

    /**
     *
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     *
     */
    @ApiModelProperty(value = "")
    private Date updateTime;

    @ApiModelProperty("身份证")
    private String idNumber;
    @ApiModelProperty("紧急联系人姓名")
    private String urgencyContactName;
    @ApiModelProperty("紧急联系人电话")
    private String urgencyContactPhone;

    @TableLogic
    @JsonIgnore
    @ApiModelProperty(value = "",hidden = true)
    private Integer deleted;
    //生成的司机用户id
    private Long newUserId;

}
